home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d20 / bsrc_250.arc / MKWATDOS.ARC / MAKEFILE < prev   
Text File  |  1991-09-16  |  17KB  |  293 lines

  1. #--------------------------------------------------------------------------#
  2. #                                                                          #
  3. #                                                                          #
  4. #      ------------         Bit-Bucket Software, Co.                       #
  5. #      \ 10001101 /         Writers and Distributors of                    #
  6. #       \ 011110 /          Freely Available<tm> Software.                 #
  7. #        \ 1011 /                                                          #
  8. #         ------                                                           #
  9. #                                                                          #
  10. #  (C) Copyright 1987-91, Bit Bucket Software Co., a Delaware Corporation. #
  11. #                                                                          #
  12. #                                                                          #
  13. #              Makefile for BinkleyTerm (Watcom WMAKE version)             #
  14. #                                                                          #
  15. #                                                                          #
  16. #                       BinkleyTerm Licensing Terms                        #
  17. #                                                                          #
  18. #                                                                          #
  19. # (C) Copyright 1987-91 Bit Bucket Software Co., a Delaware Corporation.   #
  20. # ALL RIGHTS RESERVED. COMMERCIAL DISTRIBUTION AND/OR USE PROHIBITED       #
  21. # WITHOUT WRITTEN PERMISSION FROM BIT BUCKET SOFTWARE CO.                  #
  22. #                                                                          #
  23. # Non-Commercial distribution and/or use is permitted under the following  #
  24. # terms:                                                                   #
  25. #                                                                          #
  26. #                                                                          #
  27. # 1. You may copy and distribute verbatim copies of BinkleyTerm source,    #
  28. # documentation, and executable code as you receive it, in any medium,     #
  29. # provided that you conspicuously and appropriately publish on each copy a #
  30. # valid copyright notice "(C) Copyright 1987-91, Bit Bucket Software Co."; #
  31. # keep intact the notices on all files that refer to this License          #
  32. # Agreement and to the absence of any warranty;  PROVIDE UNMODIFIED COPIES #
  33. # OF THE DOCUMENTATION AS PROVIDED WITH THE PROGRAM; and give any other    #
  34. # recipients of the BinkleyTerm program a copy of this License Agreement   #
  35. # along with the program.  You may charge a distribution fee for the       #
  36. # physical act of transferring a copy, but no more than is necessary to    #
  37. # recover your actual costs incurred in the transfer. Under no             #
  38. # circumstances is BinkleyTerm to be distributed in such a way as to be    #
  39. # construed as "value added" in a sales transaction, such as, but not      #
  40. # limited to, software bundled with a modem or CD-ROM software             #
  41. # collections.                                                             #
  42. #                                                                          #
  43. # 2. You may modify your copy or copies of BinkleyTerm or any portion of   #
  44. # it, and copy and distribute such modifications under the terms of        #
  45. # Paragraph 1 above, provided that you also do the following:              #
  46. #                                                                          #
  47. #     a) cause the modified files to carry prominent notices stating       #
  48. #     that you changed the files and the date of any change;               #
  49. #                                                                          #
  50. #     b) cause the executable code of such modified version to clearly     #
  51. #     identify itself as such in the course of its normal operation;       #
  52. #                                                                          #
  53. #     c) if the modified version is not a "port", but operates in the      #
  54. #     same hardware and/or software environment as the original            #
  55. #     distribution, make the original version equally available,           #
  56. #     clearly identifying same as the original, unmodified version;        #
  57. #                                                                          #
  58. #     d) cause the whole of any work that you distribute or publish,       #
  59. #     that in whole or in part contains or is a derivative of              #
  60. #     BinkleyTerm or any part thereof, to be licensed at no charge to      #
  61. #     all third parties on terms identical to those contained in this      #
  62. #     License Agreement (except that you may choose to grant more          #
  63. #     extensive warranty protection to some or all third parties, at       #
  64. #     your option); and                                                    #
  65. #                                                                          #
  66. #     e) send the complete source code modifications to Bit Bucket         #
  67. #     Software Co. at one of the addresses listed below,  for the          #
  68. #     purpose of evaluation for inclusion in future releases of            #
  69. #     BinkleyTerm.  Should your source code be included in BinkleyTerm,    #
  70. #     Bit Bucket Software Co. retains all rights for redistribution of     #
  71. #     the code as part of BinkleyTerm and all derivative works, with       #
  72. #     appropriate credit given to the author of the modification.          #
  73. #                                                                          #
  74. #     f) You may charge a distribution fee for the physical act of         #
  75. #     transferring a copy, but no more than is necessary to recover        #
  76. #     your actual costs incurred in the transfer, and you may at your      #
  77. #     option offer warranty protection in exchange for a fee.              #
  78. #                                                                          #
  79. # 3. Mere aggregation of another unrelated program with this program and   #
  80. # documentation (or derivative works) on a volume of a storage or          #
  81. # distribution medium does not bring the other program under the scope of  #
  82. # these terms.                                                             #
  83. #                                                                          #
  84. # 4. You may copy and distribute BinkleyTerm and its associated            #
  85. # documentation (or a portion or derivative of it, under Paragraph 2) in   #
  86. # object code or executable form under the terms of Paragraphs 1 and 2     #
  87. # above provided that you also do one of the following:                    #
  88. #                                                                          #
  89. #     a) accompany it with the complete corresponding machine-readable     #
  90. #     source code, which must be distributed under the terms of            #
  91. #     Paragraphs 1 and 2 above; or,                                        #
  92. #                                                                          #
  93. #     b) accompany it with a written offer, valid for at least three       #
  94. #     years, to give any third party free (except for a nominal            #
  95. #     shipping charge) a complete machine-readable copy of the             #
  96. #     corresponding source code, to be distributed under the terms of      #
  97. #     Paragraphs 1 and 2 above; or,                                        #
  98. #                                                                          #
  99. #     c) accompany it with the information you received as to where        #
  100. #     the corresponding source code may be obtained.  (This                #
  101. #     alternative is allowed only for noncommercial distribution and       #
  102. #     only if you received the program in object code or executable        #
  103. #     form alone.)                                                         #
  104. #                                                                          #
  105. # For an executable file, complete source code means all the source code   #
  106. # for all modules it contains; but, as a special exception, it need not    #
  107. # include source code for modules which are standard libraries that        #
  108. # accompany the operating system on which the executable file runs.        #
  109. #                                                                          #
  110. # 5. You may not copy, sublicense, distribute or transfer BinkleyTerm and  #
  111. # its associated documentation  except as expressly provided under this    #
  112. # License Agreement.  Any attempt otherwise to copy, sublicense,           #
  113. # distribute or transfer BinkleyTerm is void and your rights to use the    #
  114. # program under this License agreement shall be automatically terminated.  #
  115. # However, parties who have received computer software programs from you   #
  116. # with this License Agreement will not have their licenses terminated so   #
  117. # long as such parties remain in full compliance, and notify Bit Bucket    #
  118. # Software Co. of their intention to comply with this Agreement.           #
  119. #                                                                          #
  120. # 6. If you wish to incorporate parts of BinkleyTerm into other free       #
  121. # programs whose distribution conditions are different, please contact     #
  122. # Bit Bucket Software Co. at one of the addresses listed below.  We have   #
  123. # not yet worked out a simple rule that can be stated here, but we will    #
  124. # usually permit this.  We will be guided by the two goals of preserving   #
  125. # the free status of all derivatives of our free software (as it pertains  #
  126. # to Non-Commercial use as provided by this Agreement) and of promoting    #
  127. # the sharing and reuse of software.                                       #
  128. #                                                                          #
  129. # 7. For the purposes of this document, "COMMERCIAL USE" is defined as     #
  130. # operation of the software on four or more computers or data lines owned  #
  131. # by the same for-profit organization. Any organization may operate this   #
  132. # software under the terms of this Non-Commercial Agreement if operation   #
  133. # is limited to three or less computers or data lines.                     #
  134. #                                                                          #
  135. #                                                                          #
  136. #                                NO WARRANTY                               #
  137. #                                                                          #
  138. # BECAUSE BINKLEYTERM IS LICENSED FREE OF CHARGE, WE PROVIDE ABSOLUTELY NO #
  139. # WARRANTY.  EXCEPT WHEN OTHERWISE STATED IN WRITING, BIT BUCKET SOFTWARE  #
  140. # CO. AND/OR OTHER PARTIES PROVIDE BINKLEYTERM "AS IS" WITHOUT WARRANTY OF #
  141. # ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,    #
  142. # THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR   #
  143. # PURPOSE.  THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF           #
  144. # BINKLEYTERM, AND THE ACCURACY OF ITS ASSOCIATED DOCUMENTATION, IS WITH   #
  145. # YOU.  SHOULD BINKLEYTERM OR ITS ASSOCIATED DOCUMENTATION PROVE           #
  146. # DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR     #
  147. # CORRECTION.                                                              #
  148. #                                                                          #
  149. # IN NO EVENT WILL BIT BUCKET SOFTWARE CO. BE RESPONSIBLE IN ANY WAY FOR   #
  150. # THE BEHAVIOR OF MODIFIED VERSIONS OF BINKLEYTERM. IN NO EVENT WILL       #
  151. # BIT BUCKET SOFTWARE CO. AND/OR ANY OTHER PARTY WHO MAY MODIFY AND        #
  152. # REDISTRIBUTE BINKLEYTERM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR        #
  153. # DAMAGES, INCLUDING ANY LOST PROFITS, LOST MONIES, OR OTHER SPECIAL,      #
  154. # INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY  #
  155. # TO USE (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED #
  156. # INACCURATE OR LOSSES SUSTAINED BY THIRD PARTIES OR A FAILURE OF THE      #
  157. # PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS) BINKLEYTERM, EVEN IF YOU     #
  158. # HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES, OR FOR ANY CLAIM   #
  159. # BY ANY OTHER PARTY.                                                      #
  160. #                                                                          #
  161. #                                                                          #
  162. # You can contact Bit Bucket Software Co. at any one of the following      #
  163. # addresses:                                                               #
  164. #                                                                          #
  165. # Bit Bucket Software Co.        FidoNet  1:104/501, 1:343/491             #
  166. # P.O. Box 460398                AlterNet 7:491/0                          #
  167. # Aurora, CO 80046               BBS-Net  86:2030/1                        #
  168. #                                Internet f491.n343.z1.fidonet.org         #
  169. #                                                                          #
  170. #                                                                          #
  171. # Please feel free to contact us at any time to share your comments about  #
  172. # our software and/or licensing policies.                                  #
  173. #                                                                          #
  174. # Our thanks to Richard Stallman and the Free Software Foundation, Inc.,   #
  175. # for most of the wording of this License.                                 #
  176. #                                                                          #
  177. #--------------------------------------------------------------------------#
  178.  
  179. #
  180. # Definitions
  181. #
  182.  
  183. PROJ = BINKLEY
  184. PROJFILE = MAKEFILE
  185.  
  186. SRC_DIR  = ..\src
  187. INCL_DIR = ..\include
  188.  
  189. DEF_H1= $(INCL_DIR)\com.h $(INCL_DIR)\com_dos.h $(INCL_DIR)\xfer.h 
  190. DEF_H2= $(INCL_DIR)\bink.h $(INCL_DIR)\zmodem.h $(INCL_DIR)\keybd.h
  191. DEF_H3= $(INCL_DIR)\sbuf.h $(INCL_DIR)\sched.h $(INCL_DIR)\externs.h 
  192. DEF_H4= $(INCL_DIR)\includes.h $(INCL_DIR)\prototyp.h $(INCL_DIR)\keyfncs.h
  193.  
  194. DEFAULT_H = $(DEF_H1) $(DEF_H2) $(DEF_H3) $(DEF_H4)
  195.  
  196. CC  = wcc
  197. ASM = masm
  198.  
  199. LINKER = wlink
  200. LINKOPT = option packcode=64
  201.  
  202. #
  203. # Default C Compiler flags: 
  204. # Compile only, Large Model,
  205. # Optimize for size, No stack checking,
  206. # Pack structures, Include symbols, Maximum Warning Level
  207. #
  208. # This is for WATCOM C 8.0
  209. CFLAGS = /ml /oaxs /zp1 /d2 /w4 /i=$(INCL_DIR)
  210.  
  211. #
  212. # Object files that Watcom C is responsible for generating:
  213. #
  214.  
  215. # First those for the main BinkleyTerm module
  216. #
  217. COBJ1 = bt.obj btconfig.obj timer.obj misc.obj b_help.obj   keymap.obj
  218. COBJ2 = file_dos.obj dosfuncs.obj mdm_proc.obj b_script.obj download.obj
  219. COBJ3 = b_fuser.obj  nodeproc.obj version7.obj langload.obj b_proto.obj
  220. COBJ4 = b_bbs.obj    b_search.obj b_sessio.obj recvbark.obj upload.obj
  221. COBJ5 = yoohoo.obj   b_wazoo.obj  b_wzsend.obj ftsc.obj     mailer.obj
  222. COBJ6 = sendbark.obj sched.obj    fossil.obj   b_passwo.obj b_frproc.obj
  223. COBJ7 = zreceive.obj zsend.obj zmisc.obj sendsync.obj recvsync.obj b_today.obj
  224. COBJ8 = data.obj     vfossil.obj  b_termov.obj b_banner.obj b_initva.obj
  225. COBJ9 = b_sbinit.obj b_flofil.obj mailovly.obj evtparse.obj b_whack.obj
  226. COBJ0 =    sb_box.obj   sb_fill.obj  sb_init.obj  sb_move.obj  sb_new.obj
  227. COB11 =    sb_put.obj   sb_read.obj  sb_scrl.obj  sb_show.obj  sb_write.obj
  228. COB12 = sb_popup.obj sb_save.obj  b_spawn.obj  b_rspfil.obj b_term.obj
  229. COB13 =    xmsend.obj m7send.obj bsend.obj brec.obj xmrec.obj m7rec.obj
  230. COB14 =    janus.obj statetbl.obj outbound.obj overlay.obj mailroot.obj
  231.  
  232. COBJS = $(COBJ1) $(COBJ2) $(COBJ3) $(COBJ4) $(COBJ5) $(COBJ6) $(COBJ7) &
  233.     $(COBJ8) $(COBJ9) $(COBJ0) $(COB11) $(COB12) $(COB13) $(COB14)
  234.  
  235. # Next those for BTCTL, the program that makes a dummy OMMM CTL file
  236. #
  237. COBJC = btctl.obj
  238.  
  239. # Then those for BTLNG, Bink's language compiler
  240. COBJL = btlng.obj get_lang.obj put_lang.obj
  241.  
  242. #
  243. # Object files that MASM (4.0, 5.0 or 5.1) is responsible for generating
  244. #
  245. MOBJS = spawn.obj bink_asm.obj
  246.  
  247. #
  248. # Dependency list for regular and debug version, and LINK
  249. # command lines
  250. #
  251.  
  252. all:    english.bxt bt.exe btctl.exe btlng.exe
  253.     echo Built ALL > all
  254.  
  255. bt.exe: $(COBJS) $(MOBJS) bt.lnk
  256.     $(LINKER) @bt.lnk
  257.  
  258. english.bxt : btlng.exe $(SRC_DIR)\english.txt
  259.     btlng $(SRC_DIR)\english.txt english.bxt
  260.  
  261. bt-dbg.exe: $(COBJS) $(MOBJS) bt-dbg.lnk
  262.     $(LINKER) @bt-dbg.lnk
  263.  
  264. btctl.exe: $(COBJC) btctl.lnk
  265.     $(LINKER) @btctl.lnk
  266.  
  267. btlng.exe: $(COBJL) btlng.lnk
  268.     $(LINKER) @btlng.lnk
  269. #
  270. # Dependencies for .C files and compiler line to generate 'em.
  271. #
  272. .c:    $(SRC_DIR)
  273. .c.obj: $(DEFAULT_H)
  274.     $(CC) $(CFLAGS) $(SRC_DIR)\$^&.c
  275.  
  276. #
  277. # Modules with special includes here
  278. #
  279. langload.obj: $(INCL_DIR)\msgs.h
  280.  
  281. #
  282. # Dependencies for .ASM files and compiler line to generate 'em.
  283. #
  284. # Important point: for MASM 4.0, leave out the -Zi switch.
  285. #
  286. # For MASM 4.0, leave out the -Zi switch.
  287. # For TASM 1.0, use /zi instead of -Zi
  288. #
  289.  
  290. .asm:    $(SRC_DIR)
  291. .asm.obj:
  292.     $(ASM) -Zi -DMODL=LARGE $(SRC_DIR)\$^&;
  293.